<?php
/**
 * Created by PhpStorm.
 * User: alexlz
 * Date: 9/29/14
 * Time: 12:46 PM
 */

namespace imgs;


interface IImageUtils {
    /**
     * (PHP 5)<br/>
     * Creates preview of one image in directory.
     * @param string $pathToImage
     * @param string $newWidth
     * @param string $outputDir
     * @param string $filesDir
     */
    static function createImagePreview($pathToImage, $newWidth, $outputDir, $filesDir);

    /**
     * (PHP 5)<br/>
     * Creates images depends on type.
     * @param string $pathToImage
     * @return resource an image resource identifier on success, false on errors.
     */
    static function createImageByType($pathToImage);

    /**
     * (PHP 5)<br/>
     * Creates previews of all Images of directory.
     * @param string $filesDir
     * @param string $outputDir
     * @param int $width
     */
    static function createAllImagesPreview($filesDir, $outputDir, $width);
} 